package com.local.order.service;

import com.local.common.util.ResultUtil;
import com.local.order.pojo.OrderItem;

import java.util.List;

public interface OrderItemService {

    /**
     * 通过 orderId 查询订单的所有商品明细
     * @param orderId
     * @return
     */
    public List<OrderItem> selectByOrderId(Integer orderId);

    /**
     * 通过 id 查询订单商品明细
     * @param orderItemId
     * @return
     */
    public OrderItem selectById(Integer orderItemId);

    /**
     * 批量插入数据
     * @param orderItemList
     * @return
     */
    public ResultUtil<String> saveByList(List<OrderItem> orderItemList);

}
